﻿<%@ Page Title="" Language="C#" MasterPageFile="~/WithoutPermBasic.Master" AutoEventWireup="true" CodeBehind="ViewStorageInDetail.aspx.cs" Inherits="StorageManage.UI.ViewStorageInDetail" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style>
        input{border:none;}
    </style>
    <script type="text/javascript">
        $(function () {
            $('input').attr('readonly', 'readonly');
            com.ajax({
                url: '/Logic/StorageIn.aspx?method=GetViewStorageIn&inCode=' + com.get.inCode,
                success: function (data) {
                    $('#form1').form('load', data.main);
                    $('#tbList').datagrid({
                        data:data.list,
                        rownumbers: true,
                        idField: 'Id',
                        singleSelect: true,
                        columns: [[
                           {
                               field: 'ck', checkbox: true, width: 30, align: 'center',
                           },
                           {
                               field: 'HmCode', title: '助记码', width: 110, align: 'center',

                           },

                              {
                                  field: 'MaterialCode', title: '物料编码', width: 110, align: 'center',

                              },
                              {
                                  field: 'Name', title: '物料名称', width: 120, align: 'center',

                              },
                              {
                                  field: 'Guige', title: '规格型号', width: 110, align: 'center',

                              },
                              {
                                  field: 'Caizhi', title: '材质', width: 110, align: 'center',

                              },
                              {
                                  field: 'Length', title: '长', width: 70, align: 'center',

                              },
                              {
                                  field: 'Width', title: '宽', width: 70, align: 'center',

                              },
                              {
                                  field: 'ZhangNum', title: '总支/张', width: 60, align: 'center',

                              },
                               {
                                   field: 'TotalWeight', title: '总重', width: 80, align: 'center',

                               },
                              {
                                  field: 'PurcUnit', title: '单位', width: 55, align: 'center',

                              },
                       {
                           field: 'MaterialType', title: '物料类型', align: 'center', width: 80,
                           formatter: function (value, row, index) {
                               return com.getArrayText(StaticCombo.MaterType, value);
                           }
                       },
                       {
                           field: 'Note', title: '备注', width: 120, align: 'center',
                       },
                        ]],

                    });
                }
            });
           

        })
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceToorbar" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <div id="divTotal" style="height:100%;width:100%">
        <div id="master" style="height: auto;width:100%">
            <form id="form1">
                <table style="width:100%">
                    <tr >
                        <th colspan="8">
                            <h1>余料入库单</h1>
                        </th>
                    </tr>
                    <tr>
                        <th colspan="8">
                                <hr />
                        </th>
                    </tr>
                    <tr>
                        <td style="text-align:right;">入库编号：</td>
                        <td>
                            <input type="text" name="InCode" id="InCode"/>
                        </td>
                         <td style="text-align:right;">制单人：</td>
                        <td> 
                            <input type="text" name="ApplyName" id="ApplyName" />
                        </td>
                         <td style="text-align:right;">制单时间：</td>
                        <td>
                            <input type="text" name="ApplyTime" id="ApplyTime"   />
                        </td>
                         <td style="text-align:right;">入库班组：</td>
                        <td>
                            <input id="InTeam" name="InTeam"  />
                        </td>
                    </tr>

                    <tr>
                        <td style="text-align:right;">生产制号：</td>
                        <td>
                            <input type="text" name="TaskCode" id="TaskCode" />
                        </td>
                         <td style="text-align:right;">项&nbsp;&nbsp;&nbsp;&nbsp;目：</td>
                        <td>
                            <input type="text" name="ProjName" id="ProjName" />
                        </td>
                         <td style="text-align:right;">工&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;程：</td>
                        <td>
                            <input type="text" name="EngName" id="EngName" />
                        </td>
                         <td style="text-align:right;">区&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;档：</td>
                        <td>
                            <input type="text" name="Warehouse" id="Warehouse" />
                        </td>
                    </tr>
                    <tr>
                        <td style="text-align:right;">备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注：</td>
                <td ">
                    <input type="text" name="Note" id="Note" style="width:200px;" />
                </td>
                    </tr>
                </table>
            </form>
        </div>
        <table id="tbList" title="余料入库表" style="width:100%"  >
        </table>
    </div>
</asp:Content>
